﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SQLite.Data
{
    public class SQLiteContext : DbContext
    {
        public SQLiteContext()
            : base("SQLiteContext")
        {

        }

        public DbSet<ProductsAndTaxes> ProductsAndTaxes { get; set; }
        public DbSet<ProductsTotalReport> ProductsTotalReport { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions
                .Remove<PluralizingTableNameConvention>();
        }
    }
}
